import request from '@/config/request.js';

// 获取用户信息
export const getInfo = () => request.get('/wx/user/userinfo',{})

export const login = (data) => request.post('/wx/user/login', data)

// 学历列表字典
export const getEducationList = (dictType) => request.get(`/wx/dict/type/${dictType}`,{})

// 专业级联字典
export const getMajorList = (eduLevel) => {
  if (eduLevel) {
    return request.get(`/wx/dict/cascader/${eduLevel}`)
  } else {
    return request.get('/wx/dict/cascader/')
  }
}
